//
//  ResultModel.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/9/10.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "ResultModel.h"

@implementation ResultModel
-(void)setData:(NSArray *)data{
    _data = data;
    NSMutableArray * marr = [NSMutableArray array];
    for (NSDictionary * dict in _data) {
        Product * p = [[Product alloc] mj_setKeyValues:dict];
        [marr addObject:p];
    }
    self.produdtcArray = marr;
}

-(void)setNextpageurl:(NSString *)nextpageurl{
    if([nextpageurl isKindOfClass:[NSNull class]]){
        nextpageurl = nil;
    }
    _nextpageurl = nextpageurl;
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
